package com.weichen.studentgameexchange.game;

import com.weichen.studentgameexchange.game.config.GameConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

@SpringBootApplication(scanBasePackages = {"com.weichen.studentgameexchange.game","com.weichen.studentgameexchange.common.config"})
@MapperScan(basePackages = "com.weichen.studentgameexchange.game.dao")
@Import(GameConfig.class)
@EnableDiscoveryClient()
@EnableFeignClients(basePackages = "com.weichen.studentgameexchange.game.feign")
public class StudentGameExchangeGameApplication {

    public static void main(String[] args) {
        SpringApplication.run(StudentGameExchangeGameApplication.class, args);
    }

}
